import request from '@/utils/request'
import type { ApiResponse } from '../index'

// 攻略相关接口
export const guideApi = {
  // 获取攻略列表
  getList(params?: { page?: number; category?: string }) {
    return request.get<ApiResponse>('/public/guides', { params })
  },

  // 获取攻略详情
  getDetail(id: number) {
    return request.get<ApiResponse>(`/public/guides/${id}`)
  }
} 